<?php
/*---------------------------------------------------------------------
* 当前访问application配置信息.
* 注意：此处的配置将会覆盖同名键值的系统配置
* ---------------------------------------------------------------------
* Copyright (c) 2013-now http://blog518.com All rights reserved.
* ---------------------------------------------------------------------
* Licensed ( http://mpe.apache.org/licenses/LICENSE-2.0 )
* ---------------------------------------------------------------------
* Author: <yangjian102621@gmail.com>
*-----------------------------------------------------------------------*/
$config = array(

    'template' => 'default',    //默认模板
    /**
     * 模板编译缓存配置
     * 0 : 不启用缓存，每次请求都重新编译(建议开发阶段启用)
     * 1 : 开启部分缓存， 如果模板文件有修改的话则放弃缓存，重新编译(建议测试阶段启用)
     * -1 : 不管模板有没有修改都不重新编译，节省模板修改时间判断，性能较高(建议正式部署阶段开启)
     */
    'temp_cache' => 0,


    /**
     * 用户自定义模板标签编译规则
     * array( 'search_pattern' => 'replace_pattern'  );
     */
    'saas_api_url' => 'http://saas.dasu123.my/',
    'pay_api_url' => 'http://pay.dasu123.my/',

    'temp_rules' => array(
        '/{setSelectOptions\s+(.*?)\s+(.*?)\s+(.*?)\s+(.*?)(\s+(.*?))?}/i' => '<?php echo setSelectOptions(${1},"${2}",${3},${4},${5}) ?>',
        '/{setCheckboxOptions\s+(.*?)\s+(.*?)(\s+(.*?))?}/i' => '<?php echo setCheckboxOptions(${1},"${2}",${3}) ?>',
        '/{setRadioOptions\s+(.*?)\s+(.*?)(\s+(.*?))?}/i' => '<?php echo setRadioOptions(${1},"${2}",${3}) ?>',
        '/{C\s+([^\s]*?)}/i' => '<?php echo C(${1}); ?>',
        '/{C\s+([^\s]*?)(\s+)(.*?)}/i' => '<?php if(C(${1})){echo C(${1});}else{echo ${3};} ?>',

    ),
    'mpe_domain'=>'dasu123.my',//mpe主域,用来生成instanses.config.php
    //'domain' => 'mpe.dasu123.my',     //网站域名
    'res_url' => __RES_URL__,//'http://mpe.dasu123.my',      //静态资源的服务器地址(css, image)
    //默认访问的页面
    'default_url' => array(
        'module' => 'index',
        'action' => 'index',
        'method' => 'index'),

    'template' => 'default',    //默认模板
    'temp_cache' => 0,      //模板引擎缓存
    //----------------------------------------------------------------------------------------
    //以上都框架内置的配置变量，请不要删除，下面是用户自定义的变量可以添加或者删除
    'admin_title' => '大塑MPE',
    'site_copyright' => '2016 &copy; dasu123.com All Rights Reserve',
    'cache_type' => 'file',
    'originator_id' => 1, //网站创始人ID, 权限管理后门管理员

    //基本设置初始化
    'site_name' => '大塑MPE',
    'site_url' => 'http://mpe.dasu123.my/',
    'site_logo' => '/upload/logo.log',
    'site_icp' => '粤ICP881881881',
    'site_copyright' => '2016 &copy; dasu123.com All Rights Reserve',
    'title_sperator' => '-',

    'enabled_register' => 'on',
    'register_contact' => '---- 开户协议 ----',
    'site_enabled' => 'on',
    'site_down_page' => '404.html',
    'statistic_code' => '<script></script>',

    //客服设置
    'cs_work_time' => '{}',
    'cs_phone' => '400-820-9932',
    'cs_telephone' => '0755-3342321',
    'cs_email' => '982220546@qq.com',
    'cs_wx_public' => 'Monda',
    'wx_qr' => '', //底部二维码
    'cs_qq' => '[{"name":"","qq":""}]',
    //上传设置
    'file_save_path' => '/uploads',
    'max_file_size' => '5192',
    'allow_file_ext' => 'doc,docx,ppt,pptx,xls,xlsx',

    'image_save_path' => '/images',
    'max_image_size' => '2048',
    'allow_image_ext' => 'jpg,jpeg,png,gif,bmp',

    'media_save_path' => '/videos',
    'max_media_size' => '120',
    'allow_media_ext' => 'wmv,avi,mp4,3gp,flv',
    //SEO设置
    'title' => '大塑MPE',
    'keywords' => '大塑MPE',
    'description' => '大塑MPE',
    'index_name' => 'index',
    'html_ext' => 'html',
    'enabled_index_cache' => 'on',
    'enabled_url_rewrite' => 'on',
    'nav_count' => 4,
    //交易设置
    'order_life' => '10800', //订单生存时间
    'order_mode'=>'DirectTrade',
    'verify_expr' => 30,//验证超时时间

    'admin_pagesize_options' => array(15, 30, 50),

);

return $config;
